package com.zzy.formatjson;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TempJSONModel {

    // 注意 fastjson 使用 2.0 版本 2.0.32
    @JSONField(format = "###,###.######")
    private double money;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    //@JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
